Basic analysis of Vancouver weather patterns:
Data is collected from Govt of Canada website:
(process is automated in ‘van-weather-import.R’)
## [1] "Winter" "Spring" "Summer" "Fall"
Earliest date: 1998-01-01
Most recent date: 2019-05-31
Check data structure:
## Classes 'spec_tbl_df', 'tbl_df', 'tbl' and 'data.frame': 7818 obs. of 10 variables:
## $ Month : Factor w/ 12 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 1 1 ...
## $ Season : Factor w/ 4 levels "Winter","Spring",..: 1 1 1 1 1 1 1 1 1 1 ...
## $ Season.Yr : num 1998 1998 1998 1998 1998 ...
## $ Date : Date, format: "1998-01-01" "1998-01-02" ...
## $ Year : Factor w/ 22 levels "1998","1999",..: 1 1 1 1 1 1 1 1 1 1 ...
## $ Day : num 1 2 3 4 5 6 7 8 9 10 ...
## $ Max.Temp : num 8.7 4.2 1.7 2.8 5.7 7 7.3 7.9 4 3.4 ...
## $ Min.Temp : num 3 -1.1 -2.2 -0.9 2.3 3.6 4 1.3 0.3 -1.7 ...
## $ Mean.Temp : num 5.9 1.6 -0.3 1 4 5.3 5.7 4.6 2.2 0.9 ...
## $ Total.Precip: num 5.6 0.6 0.2 6 6.2 3.8 0 0 0 0.2 ...
## - attr(*, "spec")=
## .. cols(
## .. Month = col_double(),
## .. Season = col_character(),
## .. Season.Yr = col_double(),
## .. Date = col_date(format = ""),
## .. Year = col_double(),
## .. Day = col_double(),
## .. Max.Temp = col_double(),
## .. Min.Temp = col_double(),
## .. Mean.Temp = col_double(),
## .. Total.Precip = col_double()
## .. )
Earliest date: 1998-01-01
Most recent date: 2019-05-31
Check Data Relationships
For each month, what has been the pattern in precipitation over the years?
Note: the year for a winter season is applied to year at end of season. So winter from Dec 2018 to Feb 2019 is considered winter of 2019.
For each month, what has been the pattern in ave. temperature over the years?
Note: the year for a winter season is applied to year at end of season. So winter from Dec 2018 to Feb 2019 is considered winter of 2019.